package com.helin.helinhealth.controller;

import com.helin.helinhealth.common.Result;


import com.helin.helinhealth.service.EmergencyService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 紧急呼叫控制器
 */
@Tag(name = "紧急呼叫", description = "紧急呼叫相关接口")
@RestController
@RequestMapping("/api/emergency")
public class EmergencyController {

    @Autowired
    private EmergencyService emergencyService;

    @Operation(summary = "触发紧急呼叫", description = "发起紧急呼叫")
    @PostMapping
    public Result callEmergency() {
        return Result.success("紧急呼叫已触发", 200);
    }

    @Operation(summary = "获取呼叫状态", description = "查询紧急呼叫处理状态")
    @GetMapping("/status")
    public Result getEmergencyStatus() {
        return Result.success("获取呼叫状态成功", 200);
    }
} 